package com.itheima.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.apache.commons.dbutils.QueryRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import javax.sql.DataSource;

/**
 * @Configuration  此类用于替代applicationContext.xml 配置文件
 *  配置类
 */
@Configuration  //声明此类就是配置类
//<context:component-scan base-package="com.itheima"></context:component-scan>
@ComponentScan(basePackages = "com.itheima")  //包扫描
@Import(DaoConfig.class) //将dao引入到主配置类中
public class MyConfig {

}
